home *** CD-ROM | disk | FTP | other *** search
-
-
- XAnim was written to display various types of animations in an X11
- environment(currently it only supports Pseudo Color Displays). The
- intent was/is to make it fairly easy to add new animation types as
- they are developed.
-
- Before you compile, edit the Makefile to choose your favourite compiler,
- optimization flags and to indicate where the X11 libraries are located.
- When compiling you might see warnings about zero sized structure members or
- zero subscripts. This is because some of the data structures aren't
- ANSI C compliant. So far, the Mips, Sun and DG compilers can handle this.
-
- Once compiled, xanim can display the following:
-
- 1) FLI anims
- 2) IFF type 3,5,J and l(small L not 1) anims
- 3) IFF color cycling
- 4) IFF images (EHB included, but HAM shown as 332)
- 5) GIFs (with multiple images)
- 6) a kludgy text file listing gifs and what order to show them in
- 7) any combination of the above on the same command line.
-
- NOTES: This source code isn't the cleanest and it's currently
- not commented very well. Both of these have high priority
- now.(it's getting better though :^)
-
-
- Usage and Options:
-
- xanim [ [+|-]opts ...] animfile [ [ [-opts] animfile] ... ]
-
- A + turns the following options on and a - turns them off.
- Option f,j and l ignore leading + and -'s.
-
- Options:
-
- b uncompress animations up front. GIFs are automatically
- uncompressed and there currently isn't support for
- uncompressing IFF type J animations. Careful, use of
- this flag can eat up a lot of memory.
-
- c This is used to tell XAnim that and IFF type 3 or 5
- animation is non-looping and that it needs to treat
- it a bit differently. If an IFF type 3 or 5 animation
- looks right the 1st time and is screwed up on the 2nd
- loop, you probably need to use this flag.
-
- d debug. Spews a lot of stuff to the screen.
-
- f# Adds fading between animation files. The colormap
- which fade to black in 16 frames. # is the delay of
- each of these frames. -f0 turns off fading.
-
- i Scale image vertically by 1/2.(Odd display lines
- aren't displayed).
-
- j# # is number of milliseconds between frames
- (default is 17 unless specified inside the
- the animation itself).
-
- l# loop following files # number times before moving on to
- the next file. default is 1.
-
- o turns on certain optimizations. Turning this off would only
- be useful if you are buffering the anim and wish to run
- the anim backwards. default is on.
-
- r turns color cycling off(IFF cycling images).
-
- s prevents window from resizing to match image
- size. Window is the size of largest image.
- default is on.
-
- u when single stepping, anim is played until image is
- updated/changed.(a new cmap is not considered an update).
- default is on.
-
- v verbose. Tells you image sizes, number of deltas etc.
-
- Anim Window Commands:
-
- q quits.
- g move to anim file after a cycling IFF image.
- s stop color cycling if started.
- r restore original color once stopped (s).
- space toggle. starts/stops animation
- , go back one frame within file
- . go forward one frame within file
- < go back to start of previous file
- > go forward to start of next file
-
-
- Examples:
-
- To display a single animation:
-
- xanim iff3.anim
-
- To display a nonlooping IFF animation:
-
- xanim +c iff3.anim
-
- To display A.fli 3 times, B.anim and C.movie 2 times each and D.fli
- once before repeating:
-
- xanim -l3 A.fli -l2 B.anim C.movie -l1 D.fli
- or
- xanim +l3 A.fli +l2 B.anim C.movie +l1 D.fli
-
- To fade to black after A.fli B.fli and C.fli but not after D.fli:
-
- xanim +f3 A.fli B.fli C.fli +f0 D.fli
-
- To see A.anim real slow:
-
- xanim +j50 A.anim
-
- To display title image for a while then fade into an animation at
- normal speed:
-
- xanim +f3 +j200 title.gif +j0 anim.gifanim
-
- To show 1st anim unbuffered at half height and 2nd anim buffered
- at full height:
-
- xanim +i first.anim -i+b second.anim
- or
- xanim +i first.anim -i +b second.anim
-
-
-
- A series of GIF's can be displayed as:
-
- xanim im_0.gif im_1.gif im_2.gif ... im_36.gif
-
- or
-
- xanim im_*.gif
-
- or
-
- xanim im.txt
-
- or
-
- xanim im.gifanim
-
- where im.txt is a txt file(a list of images, see xanim.doc for more details).
- and im.gifanim is one file composed of im_0.gif through im_36.gif.
-
-